import { request } from '@/framework/utils/request-jdz';

// 获取系统列表
export const getThirdSystem = (params) => {
  return request(
    {
      url: '/thirdSystem',
      method: 'get',
      params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};

// 添加系统
export const postThirdSystem = (params) => {
  return request(
    {
      url: '/thirdSystem',
      method: 'post',
      data: params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 修改系统
export const putThirdSystem = (params) => {
  return request(
    {
      url: `/thirdSystem/${params.id}`,
      method: 'put',
      data: params,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 删除系统
export const delThirdSystem = (id) => {
  return request(
    {
      url: `/thirdSystem/${id}`,
      method: 'delete',
    },
    {
      isGetDataDirectly: false,
    },
  );
};

// 设备信息
export const getThirdDevice = (data) => {
  return request(
    {
      url: '/thirdDevice',
      method: 'get',
      params: data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
